<%--
  Created by IntelliJ IDEA.
  User: cherishy
  Date: 2020/7/30
  Time: 13:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>更新书籍</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>更新书籍信息</small>
                </h1>
            </div>
        </div>
        <form class="form-horizontal" action="${pageContext.request.contextPath}/book/updateBook" method="post">
            <input name="bookID" value="${QBook.bookID}" hidden/><%--书的ID--%>
            <div class="form-group">
                <label for="bkName" class="col-sm-2 control-label">书籍名称</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="bkName" name="bookName" value="${QBook.bookName}">
                </div>
            </div>
            <div class="form-group">
                <label for="bkCount" class="col-sm-2 control-label">书籍数量</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" id="bkCount" name="bookCounts" value="${QBook.bookCounts}">
                </div>
            </div>
            <div class="form-group">
                <label for="bkDetail" class="col-sm-2 control-label">书籍描述</label>
                <div class="col-sm-5">
                    <textarea class="form-control" rows="5" id="bkDetail" name="detail">${QBook.detail}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">提交</button>
                </div>
                <div class="col-sm-offset-2 col-sm-10">
                </div>
            </div>
        </form>
        <a href="${pageContext.request.contextPath}/book/getBooks"><button class="btn btn-primary" style="float: right;height: 40px;width: 115px" >返回</button></a>
    </div>
</div>
</body>
</html>
